package top.goldenyear.porpoise.framework.web.config;

import top.goldenyear.porpoise.common.core.model.CPI;
import top.goldenyear.porpoise.framework.web.core.util.WebUtils;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;

/**
 * @author airhead
 */
@Configuration
public class WebConfig {
  @Bean
  public void init(@Inject WebProps webProps) {
    WebUtils.setWebProperties(webProps);

    CPI.setRetState("code", 200, 500);
  }
}
